diff options
| author | Adam Soltys <[email protected]> | 2026-03-02 21:22:41 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-02 21:22:41 -0800 |
| commit | 7c4d393feaf9c594fa6bdae274abc0edd45c3373 (patch) | |
| tree | 74ea34dbbc9b7399b910ae92af9208f2c787ecde /src/routes/(app)/[username]/(profile) | |
| parent | 90f29dce3d675f850e48ede2edb187e6c53b84da (diff) | |
| download | coinos-ui-7c4d393feaf9c594fa6bdae274abc0edd45c3373.tar.gz coinos-ui-7c4d393feaf9c594fa6bdae274abc0edd45c3373.zip | |
offline mode
Diffstat (limited to 'src/routes/(app)/[username]/(profile)')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 2bde3e08..9c0d2203 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -5,7 +5,7 @@ import Balance from "$comp/Balance.svelte"; import Spinner from "$comp/Spinner.svelte"; import { t } from "$lib/translations"; - import { installPrompt, password } from "$lib/store"; + import { installPrompt, password, cachedAccounts, cachedRates } from "$lib/store"; import { afterNavigate, goto, invalidate, preloadData } from "$app/navigation"; import { page } from "$app/stores"; import { versions, post, fail, getCookie } from "$lib/utils"; @@ -84,6 +84,12 @@ $effect(() => { if (user) user.savings = 0; }); + $effect(() => { + if (accounts?.length) $cachedAccounts = accounts; + }); + $effect(() => { + if (rates) $cachedRates = rates; + }); let { host } = $derived($page.url); </script> |
